package com.zzx.project.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzx.project.entity.Websitelm;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WlmDao extends BaseMapper<Websitelm> { //网站留言Dao
    //添加留言
    int addWlm(@Param("lm") Websitelm websitelm);
    //获取侧边栏的五条留言
    List<Websitelm> getFiveData();
    //获取所有留言(实际上就十来条，全取出来屏幕会拉长)
    List<Websitelm> getAllData();
}
